package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 饮食记录对象 fit_diet
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
public class FitDiet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 食物名称 */
    @Excel(name = "食物名称")
    private String foodName;

    /** 卡路里（千卡） */
    @Excel(name = "卡路里", readConverterExp = "千=卡")
    private BigDecimal calories;

    /** 餐类型（0早餐 1午餐 2晚餐 3加餐） */
    @Excel(name = "餐类型", readConverterExp = "0=早餐,1=午餐,2=晚餐,3=加餐")
    private String mealType;

    /** 饮食时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "饮食时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dietTime;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setFoodName(String foodName) 
    {
        this.foodName = foodName;
    }

    public String getFoodName() 
    {
        return foodName;
    }

    public void setCalories(BigDecimal calories) 
    {
        this.calories = calories;
    }

    public BigDecimal getCalories() 
    {
        return calories;
    }

    public void setMealType(String mealType) 
    {
        this.mealType = mealType;
    }

    public String getMealType() 
    {
        return mealType;
    }

    public void setDietTime(Date dietTime) 
    {
        this.dietTime = dietTime;
    }

    public Date getDietTime() 
    {
        return dietTime;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("foodName", getFoodName())
            .append("calories", getCalories())
            .append("mealType", getMealType())
            .append("dietTime", getDietTime())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
